package sctu.edu.java.year2016.team06.chenqiang.day20160524.chapter7_2;

/**
 * Created by XQ on 2016/5/24.
 */
import java.util.Scanner;
public class Calculate {
    public static void main(String[] args){
        Rectangle s=new Rectangle();
        System.out.println("please enter the figure of the length and width:");
        Scanner scan=new Scanner(System.in);
        int length=scan.nextInt();
        int width=scan.nextInt();
        s.initialization(length,width);
        System.out.println("The area of a rectangle is");
        s.calculation();
    }
}
